<?php

require_once('common.php');
include_once('DB.php');

Auth::keep_logged_in();

$t = new Template();
$link = $t->get_link('teacher_student_admin','teacher_student_admin');

if (isset($_GET['id']))
{
  query_futtatas("DELETE FROM relnaat.hallgato WHERE hallgato.id =".$_GET['id']); 
}
else
{
	query_futtatas("DELETE FROM relnaat.hallgato");
}

header('Location: '.$link);


?>